package com.xyzwps.mvckotlin.handler

import org.springframework.stereotype.Component
import org.springframework.web.reactive.function.server.ServerRequest
import org.springframework.web.reactive.function.server.ServerResponse
import reactor.core.publisher.Mono


import org.springframework.web.reactive.function.server.ServerResponse.ok

@Component
class ErrorHandler {

    fun x404(request: ServerRequest): Mono<ServerResponse>
        = ok().render("error/404")
}